html {
  font-size: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.link {
  color: #007aff;
  text-decoration: underline;
  cursor: pointer;
}

.error {
  margin: 20px;
  padding: 20px;
  color: red;
  font-size: large;
}

input {
  letter-spacing: 2px;
}

.important {
  zoom: 1.2;

  .v, .v * {
    color: red;
  }
}


fieldset {
  border: 1px solid gray;
  padding: 10px;
  margin-bottom: 10px;
  position: relative;
}

legend {
  border: solid 1px gray;
  padding: 2px 10px;
  margin-left: 10px;
}


@keyframes fade_in {
  from {
    margin-top: 200px;
    opacity: 0;
  }
  to {
    margin-top: 0;
    opacity: 1;
  }
}

@keyframes fade_out {
  from {
    margin-top: 0;
    opacity: 1;
  }
  to {
    margin-top: -200px;
    opacity: 0;
  }
}

.fade_in {
  animation: fade_in 1s;
  margin-top: 0;
  opacity: 1;
}

.fade_out {
  animation: fade_out 1s;
  margin-top: -200px;
  opacity: 0;
}

input.chk-error, .chk-error input {
  background-color: #f4dfeb4d;
  border: dashed 1px deeppink;
}

.chk-msg {
  color: red;
  padding: 1px 0 5px;
}

:not(.kv).must {
  display: flex;
}

.kv.must .k:before, :not(.kv).must:before {
  content: "*";
  color: red;
}


.fullscreen-div {
  display: none;
  position: fixed;
  top: -10px;
  left: 50vw;
  margin-left: -10px;
  z-index: 3999;
  background: wheat;
  width: 20px;
  text-align: center;
  height: 20px;
  line-height: 20px;
  border-radius: 20px;
  padding: 0;
  cursor: default;
}

.fullscreen-div:hover {
  width: 120px;
  padding: 6px 8px;
  top: 2px;
  right: 2px;
  margin-left: -60px;
}

.fullscreen-div:hover:before {
  content: "Esc退出全屏";
}

html body.fullscreen .fullscreen-div {
  display: block;
}

iframe.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  z-index: 1999;
}

